// let zznhimg = require('../img/zznh.png').default
import zznhimg from '../img/zznh.png' // 大图
let nhltimg = require('../img/nhlt.jpg').default  // 小图

function component(){
    let container = document.createElement('div')
    const image = new Image()
    image.src = zznhimg
    container.append(image)
    const image2 = new Image()
    image2.src = nhltimg
    container.append(image2)
    return container
}

document.body.append(component())